package bz.ziro.kanbe.controller.mng.log;

import java.util.logging.Logger;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import bz.ziro.kanbe.dao.LogDao;
import bz.ziro.kanbe.model.Log;

public class FindController extends Controller {

    @SuppressWarnings("unused")
    private static final Logger logger = Logger.getLogger(FindController.class.getName());

    @Override
    public Navigation run() {

        //データを検索
        String keyBuf = requestScope("logKey");
        Log log = LogDao.find(Long.valueOf(keyBuf));
        requestScope("log",log);

        return forward("find.jsp");
    }
}
